package org.tempuri;

public class IMyServiceProxy implements org.tempuri.IMyService {
  private String _endpoint = null;
  private org.tempuri.IMyService iMyService = null;
  
  public IMyServiceProxy() {
    _initIMyServiceProxy();
  }
  
  public IMyServiceProxy(String endpoint) {
    _endpoint = endpoint;
    _initIMyServiceProxy();
  }
  
  private void _initIMyServiceProxy() {
    try {
      iMyService = (new org.tempuri.MyServiceLocator()).getBasicHttpBinding_IMyService();
      if (iMyService != null) {
        if (_endpoint != null)
          ((javax.xml.rpc.Stub)iMyService)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
        else
          _endpoint = (String)((javax.xml.rpc.Stub)iMyService)._getProperty("javax.xml.rpc.service.endpoint.address");
      }
      
    }
    catch (javax.xml.rpc.ServiceException serviceException) {}
  }
  
  public String getEndpoint() {
    return _endpoint;
  }
  
  public void setEndpoint(String endpoint) {
    _endpoint = endpoint;
    if (iMyService != null)
      ((javax.xml.rpc.Stub)iMyService)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
    
  }
  
  public org.tempuri.IMyService getIMyService() {
    if (iMyService == null)
      _initIMyServiceProxy();
    return iMyService;
  }
  
  public org.tempuri.FeriadosEntreFechasResponseFeriadosEntreFechasResult feriadosEntreFechas(java.util.Calendar d1, java.util.Calendar d2) throws java.rmi.RemoteException{
    if (iMyService == null)
      _initIMyServiceProxy();
    return iMyService.feriadosEntreFechas(d1, d2);
  }
  
  public java.lang.String feriadosEntreFechasAsXml(java.util.Calendar d1, java.util.Calendar d2) throws java.rmi.RemoteException{
    if (iMyService == null)
      _initIMyServiceProxy();
    return iMyService.feriadosEntreFechasAsXml(d1, d2);
  }
  
  
}